//
//  VerificationCodeViewController.m
//  MyFramework
//
//  Created by 余洋 on 2018/10/24.
//  Copyright © 2018 余洋. All rights reserved.
//

#import "VerificationCodeViewController.h"
#import "VerificationCodeView.h"

@interface VerificationCodeViewController ()

@property (weak, nonatomic) IBOutlet VerificationCodeView *verificationCodeView;

@end

@implementation VerificationCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.verificationCodeView.maxLenght = 6;
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self.verificationCodeView createView];
    self.verificationCodeView.valueChangeBlock = ^(NSString * _Nonnull string) {
        NSLog(@"%@", string);
    };
}

@end
